﻿﻿<template>
    <el-card class="form-container">
        <el-form :model="editForm" ref="editForm" :rules="dataRule"  @keyup.enter.native="dataFormSubmitHandle()" label-width="90px">
                                                                            <el-form-item label="支付类型 1.支付宝 2.微信 3.银联 4.钱包 5.混合" prop="payType">
                        <el-input v-model="editForm.payType" placeholder="请输入支付类型 1.支付宝 2.微信 3.银联 4.钱包 5.混合"></el-input>
                    </el-form-item>
                                                                <el-form-item label="订单编号" prop="orderCode">
                        <el-input v-model="editForm.orderCode" placeholder="请输入订单编号"></el-input>
                    </el-form-item>
                                                                <el-form-item label="订单总额" prop="orderPrice">
                        <el-input v-model="editForm.orderPrice" placeholder="请输入订单总额"></el-input>
                    </el-form-item>
                                                                <el-form-item label="实际支付金额" prop="payPrice">
                        <el-input v-model="editForm.payPrice" placeholder="请输入实际支付金额"></el-input>
                    </el-form-item>
                                                                <el-form-item label="订单类型 " prop="orderType">
                        <el-input v-model="editForm.orderType" placeholder="请输入订单类型 "></el-input>
                    </el-form-item>
                                                                <el-form-item label="支付详情:存储第三方支付渠道返回数据信息" prop="payDetail">
                        <el-input v-model="editForm.payDetail" placeholder="请输入支付详情:存储第三方支付渠道返回数据信息"></el-input>
                    </el-form-item>
                                                                <el-form-item label="支付回调订单号:冗余字段" prop="returnPayNo">
                        <el-input v-model="editForm.returnPayNo" placeholder="请输入支付回调订单号:冗余字段"></el-input>
                    </el-form-item>
                                                                <el-form-item label="支付记录状态1.待支付 2.支付中 3.支付成功 4.订单作废" prop="serialStatus">
                        <el-input v-model="editForm.serialStatus" placeholder="请输入支付记录状态1.待支付 2.支付中 3.支付成功 4.订单作废"></el-input>
                    </el-form-item>
                                                                <el-form-item label="创建时间" prop="createTime">
                        <el-input v-model="editForm.createTime" placeholder="请输入创建时间"></el-input>
                    </el-form-item>
                                                                <el-form-item label="修改时间" prop="updateTime">
                        <el-input v-model="editForm.updateTime" placeholder="请输入修改时间"></el-input>
                    </el-form-item>
                                        <el-form-item>
                <el-button @click="cancel">取消</el-button>
                <el-button type="primary"  @click="submit('dataForm')">确定</el-button>
            </el-form-item>
        </el-form>
    </el-card>
</template>

<script>
    import { findOrderPaySerialDetail } from '@/api/admin/user'
    export default{
        name: 'user-orderPaySerial',
        data(){
            return {
                editForm:{
                                                                                                                    payType : ''
                                                                                                orderCode : ''
                                                                                                orderPrice : ''
                                                                                                payPrice : ''
                                                                                                orderType : ''
                                                                                                payDetail : ''
                                                                                                returnPayNo : ''
                                                                                                serialStatus : ''
                                                                                                createTime : ''
                                                                                                updateTime : ''
                                                            }
            }
        },
        created(){
            this.editForm.id = this.$route.query.id
            this.view(this.$route.query.id)
        },
        methods:{
            view(val){
                findOrderPaySerialDetail(val).then(res => {
                    this.editForm = res.data.responseData
            })
            },
            cancel(){
                this.$router.go(-1)
            },
            update(){

            }
        }
    }
</script>

<style>
</style>
